﻿using Simple.Framework.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

/*********************************************************
 * 命名空间 SimpleNet.Client
 * 接口名称 ISimpleClient
 * 开发人员：ADMIN
 * 创建时间：2023/12/29 10:29:14
 * 描述说明：
 * 更改历史：
 * 
 * *******************************************************/
namespace SimpleNet.Client
{
	public interface ISimpleClient
	{
		public void SendMessage(string message, EncoderType encoderType = default);


		/// <summary>
		/// 
		/// </summary>
		/// <param name="message"></param>
		/// <param name="socketFlags"></param>
		/// <param name="encoderType"></param>
		/// <param name="cancellation"></param>
		/// <returns></returns>
		public  Task SendMessageAsync(string message, SocketFlags socketFlags, EncoderType encoderType = default, CancellationToken cancellation = default);



		public void Send(byte[] buffer);
	

		public  Task SendAsync(byte[] buffer, SocketFlags socketFlags = default, CancellationToken cancellationToken = default);
		
	}
}
